using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BusinessPlatform.Test.SalesOrder;

namespace BusinessPlatform.Test.Binding
{
    /// <summary>
    /// 销售订单
    /// </summary>
    public partial class SalesOrderWinForm : Form
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public SalesOrderWinForm()
        {
            InitializeComponent();
        }
        /// <summary>
        /// 数据绑定到UI
        /// </summary>
        /// <param name="order"></param>
        public void BindUI(ISalesOrder EntityData)
        {
            bindingSource.DataSource = EntityData;
        }
        void SalesOrderWinForm_FormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e)
        {
            Application.Exit();
        }
    }
}
